CXXFLAGS = -I include  -std=c++11 -O3 $(shell python3-config --cflags)

DEPS = lanms.h $(shell find include -xtype f)
CXX_SOURCES = pixelmerge.cpp include/clipper/clipper.cpp
OPENCV = `pkg-config --cflags --libs opencv`

LIB_SO = pixelmerge.so

$(LIB_SO): $(CXX_SOURCES) $(DEPS)
	$(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $(CXX_SOURCES) --shared -fPIC $(OPENCV)

clean:
	rm -rf $(LIB_SO)


